home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8231 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.iadfw.net!usenet
  2. From: Larry Weiss <lfw@iadfw.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Newbie doesn't understand compiler error
  5. Date: Sat, 02 Mar 1996 10:05:10 -0600
  6. Organization: ...
  7. Message-ID: <313871B6.18D3@iadfw.net>
  8. References: <Pine.SUN.3.91.960301153010.11258B-100000@pioneer.uspto.gov> <31379F66.7BA7@airmail.net>
  9. NNTP-Posting-Host: dal12-05.ppp.iadfw.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Mark Nelson wrote:
  16.  > 
  17.  > It appears that you are using the portable C compiler, which doesn't support
  18.  > this type of function definition.  To get cc to work, you need to change
  19.  > the function definitions to look like this:
  20.  > 
  21.  > main( argc, argv )
  22.  > int argc;
  23.  > char *argv[];
  24.  > {
  25.  > 
  26.  > This should be a mechanical process that will only take you a little while
  27.  > to master.  Unfortunately, it will get you accustomed to an obsolete
  28.  > idiom.
  29.  > 
  30.  
  31. Good point.  I had not realized that "not prototype-format parameter type
  32. declarators" are actually formally "obsolescent" as specified in Clause 6.9 (6.9.4
  33. and 6.9.5) of the Standard.
  34.